package com.xperblueray.stepbystep.repository;

import com.xperblueray.stepbystep.model.SysDict;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.Collection;
import java.util.List;

public interface SysDictRepository extends JpaRepository<SysDict, String> {

    /**
     * 描述: 通过名字相等查询，参数为filename
     * 相当于 select u from nari_fileinfo u where u.filename = ?1
     */
    List<SysDict> findByName(String name);


    List<SysDict> findByNameLike(String name);

    List<SysDict> findByIdIn(Collection<String> ids);

    List<SysDict> findByValue(String value);
}
